#! /bin/bash

## 所有CNV和LOH的图也提取
for Tumor in `cat ${list_nonTumor_file} | grep -v Tumor | awk -F, '{print $1}' | sort -u `
do
for ploidy in `seq 2 4`
do
for cluster in `seq 1 3`
do
ln -snf ${Titan_path}/CNAPlot_NonTumor/${Tumor}_titanCNA_ploidy${ploidy}/${Tumor}_cluster${cluster}/${Tumor}*_CNA.pdf ${Titan_path}/allModel_NonTumor/${Tumor}_p${ploidy}_c${cluster}_CNA.pdf
ln -snf ${Titan_path}/CNAPlot_NonTumor/${Tumor}_titanCNA_ploidy${ploidy}/${Tumor}_cluster${cluster}/${Tumor}*_LOH.pdf ${Titan_path}/allModel_NonTumor/${Tumor}_p${ploidy}_c${cluster}_LOH.pdf
ln -snf ${Titan_path}/CNAPlot_NonTumor/${Tumor}_titanCNA_ploidy${ploidy}/${Tumor}_cluster${cluster}/${Tumor}*_CNASEG.pdf ${Titan_path}/allModel_NonTumor/${Tumor}_p${ploidy}_c${cluster}_CNASEG.pdf
ln -snf ${Titan_path}/CNAPlot_NonTumor/${Tumor}_titanCNA_ploidy${ploidy}/${Tumor}_cluster${cluster}/${Tumor}*_LOHSEG.pdf ${Titan_path}/allModel_NonTumor/${Tumor}_p${ploidy}_c${cluster}_LOHSEG.pdf

done
done
done